package com.ozan.kemal.beans;

import com.ozan.kemal.controller.UserMgr;
import com.ozan.kemal.model.User;

public class LogInBean extends MasterBean{


	private User myUser=new User();
	private UserMgr userMgr = UserMgr.getInstance();


	public User getMyUser() {
		return myUser;
	}

	public void setMyUser(User myUser) {
		this.myUser = myUser;
	}



	public String login(){

		if(myUser!=null){

			try {
				userMgr.loginUser(myUser);

			} catch (Exception e) {

				return "" ;
			}
		}

		return "homePage";
	}

}
